home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / program / ixemlsrc.lha / ixemul / library / create_header.c < prev    next >
C/C++ Source or Header  |  1995-12-23  |  533b  |  15 lines

  1. #define KERNEL
  2. #include "ixemul.h"
  3. #include <stddef.h>
  4. #include <stdio.h>
  5.  
  6. int main(int argc, char **argv)
  7. {
  8.   printf ("/* This header has been generated by the create_header tool.\n   DO NOT EDIT! */\n\n");
  9.   printf ("#define P_SIGMASK_OFFSET 0x%x\n#define U_ONSTACK_OFFSET 0x%x\n",
  10.         (unsigned)offsetof (struct user, p_sigmask), (unsigned)offsetof (struct user, u_onstack));
  11.  
  12.   printf ("#define IXBASE_SIZEOF (IXBASE_C_PRIVATE + %d)\n",
  13.       (int)(sizeof (struct ixemul_base) - offsetof (struct ixemul_base, ix_seg_list) - 4));
  14. }
  15.